package com.refactoring.demo.chapter01;

/**
 * @作者：刘富国
 * @创建时间：2018/4/26 10:04
 */
public class Test {


    public static void main(String[] args) {
        Customer customer=new Customer("张三");
        Movie movie1=new Movie("复仇者联盟", Movie.NEW_RELEASE);
        Movie movie2=new Movie("魁拔", Movie.CHILDRENS);
        Rental rental=new Rental(movie1,5);
        Rental renta2=new Rental(movie2,5);

        customer.addRental(rental);
        customer.addRental(renta2);
        System.out.println(customer.statement()+"\n"+"\n");
        System.out.println(customer.htmlStatement());
    }
}
